home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Celestin Apprentice 5
/
Apprentice-Release5.iso
/
Demos
/
Bowers Development
/
AppMaker 2.0b5
/
Examples
/
PowerPlant
/
Gadgets
/
CGadgetsData.h
< prev
next >
Wrap
Text File
|
1996-03-19
|
1KB
|
56 lines
// CGadgetsData.h -- data access class
// Created 3/19/96 12:49 PM by AppMaker
#pragma once
#include <LBroadcaster.h>
class LFileStream;
// Define the creator type and file type for your application:
#define kSignature 'XXXX'
#define kFileType 'TEXT'
//----------
class CGadgetsData : public LBroadcaster {
public:
static void InitAppData();
public:
CGadgetsData();
virtual ~CGadgetsData();
virtual void newData();
virtual void openData (FSSpec *inMacFSSpec);
virtual void initDocData();
virtual Boolean IsDirty();
virtual void DoSave();
virtual void DoSaveAs (FSSpec *inMacFSSpec);
virtual void DoRevert();
virtual void CloseFile();
// accessor functions, replace these with application-specific functions:
virtual void GetStuff (void* stuff);
virtual void SetStuff (void* stuff);
protected:
virtual LFileStream *CreateFile (FSSpec *inMacFSSpec);
virtual LFileStream *OpenFile (FSSpec *inMacFSSpec);
virtual void CreateData();
virtual void DisposeData();
virtual void ReadData();
virtual void WriteData (LFileStream *file);
protected:
Boolean mDirty;
LFileStream *mFile;
// define your own internal data structures:
};